<p class="comment_header"> 
	<span class="user_comment"><%= link_to comment.owner.name, comment.owner %></span>
	
	<% if has_permission_for?('Comments', 'edit', comment.id) %>
		<%= link_to image_tag("/assets/write.png"), edit_document_comment_path(comment.document, comment) %>
	<% end %>
	<% if has_permission_for?('Comments', 'destroy', comment.id) %>
		<%= link_to image_tag("/assets/delete.png"), [comment.document, comment], method: :delete, confirm: 'Are you sure?'  %>
	<% end %>
	<%= link_to t('comment.index.reply'), new_document_comment_path(comment.document, parent_id: comment) unless params[:action] == 'new' %>
	<br>
	<span class="comment_created_at"><%= l(comment.created_at)%></span>
</p>
<div class="comment_content">
	<%= simple_format comment.content %>
</div>
<hr noshade size="1">